%h1 Ended campaigns
%table
  %tr
    %td
      Name
    %td
      End Date
    %td
      Winner
    %td
      Winner notif
    %td
      Winner Code
    
  -for campaign in @campaigns
    %tr
      %td
        =campaign.name
      %td
        =campaign.end_date
      %td
        =User.find(campaign.winner_id).full_name if campaign.winner_id and campaign.winner_id>-1
      %td
        =campaign.winner_notified
      %td
        =campaign.winner_key 
        
        
.div
  =will_paginate(@campaigns)
  